-- GENERATED SPELL FOR [Dark Conclave Scorncrow] --


function spell0_21385(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_21385', 8287, 1)
end

function spell1_21385(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21385', 7000, 1)
end

function Sorts_21385(pUnit, Event)
local choix_sorts_21385 = math.random(0, 1)
if choix_sorts_21385 == 0 then
pUnit:RegisterEvent('spell0_21385', 1, 1)
end
if choix_sorts_21385 == 1 then
pUnit:RegisterEvent('spell1_21385', 1, 1)
end
end

function mob21385_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21385', math.random(1500, 3000), 1)
end

function mob21385_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21385_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21385_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21385, 1, 'mob21385_Action')
RegisterUnitEvent(21385, 2, 'mob21385_Leave')
RegisterUnitEvent(21385, 3, 'mob21385_Kill')
RegisterUnitEvent(21385, 4, 'mob21385_Die')
